package com.zt.chatgpt.types.exception;

/**
 * @author: zt
 * @Description: 异常信息
 * @create: 2024-05-17 20:33
 */

public class ChatGPTException extends RuntimeException{

    private String code;

    private String message;

    public ChatGPTException(String code) {
        this.code = code;
    }

    public ChatGPTException(String code, Throwable cause) {
        this.code = code;
        super.initCause(cause);
    }

    public ChatGPTException(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public ChatGPTException(String code, String message, Throwable cause) {
        this.code = code;
        this.message = message;
        super.initCause(cause);
    }
}
